Giter VIP home page Giter VIP logo

example-instancescan-checks's People

Contributors

alikuttyka avatar aman2519 avatar apitjlillo avatar bird-03 avatar designitsecure avatar earlduque avatar fn20200323 avatar girishnagaraj09 avatar harneetsital avatar hrobarikt avatar iar42 avatar irston avatar ishaanshoor avatar iuliak avatar jochen-geist avatar lacah avatar markroethof avatar martinstoyanoff avatar mgopw avatar niamccash avatar phifogg avatar rdxr10 avatar smartcarleen avatar sn-ajb avatar sn-thameem avatar snamjosh avatar soerenmaucher avatar thameemskings avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

example-instancescan-checks's Issues

Add check for orphaned Catalog UI Policies

Sometimes, when developing new Catalog Items/Record Producers, I find left over Catalog UI Policies that are not used anywhere - not associated with a catalog item and also not associated with a variable set. These are unnecessary configurations that just create bloat in your system and it is likely best to not move these configurations to production.

An Instance Scan could flag them/find them so that you can remove them from your Update Set and clean them up.

Full example at: https://www.servicenow.com/community/developer-articles/instance-scan-orphaned-catalog-configurations-examples/ta-p/2302050

Improve "Update set should not have more than 1000 updates" check

Improve the Script Only Check named "Update set should not have more than 1000 updates".

  • It should exclude default update sets.
  • It doesn't currently identify the matching update set correctly in the results, just that that there is a matching update set to this check.

Readme organization

I think the repo is hitting a tipping point where it's hard to see, browse, and maintain the list of checks in the repos README.

Would enabling the wiki be better from a usability perspective so you can have hierarchy for the categories and automatically alphabetized lists? ๐Ÿคทโ€โ™€๏ธ

Add an Instance Scan for orphaned Catalog Client Scripts

Sometimes when developing new Catalog Items, I find left over client scripts that are not used anywhere - not associated with a catalog item and also not associated with a variable set. These are unnecessary configurations that just create bloat in your system and it is likely best to not move these configurations to production.

An Instance Scan could flag them/find them so that you can remove them from your Update Set and clean them up.

See example at: https://www.servicenow.com/community/developer-articles/instance-scan-orphaned-catalog-configurations-examples/ta-p/2302050

Add check for using setValue()'s displayValue Parameter with Reference Fields

When using setValue() on a reference field, be sure to include the display value with the value (sys_id). If you set the value without the display value, ServiceNow does a synchronous Ajax call to retrieve the display value for the record you specified. This extra round trip to the server can leave you at risk of performance issues.

More at https://developer.servicenow.com/dev.do#!/guides/tokyo/now-platform/tpb-guide/client_scripting_technical_best_practices

Duplicate checks found

Three duplicates were found in the repo:

Name Table Delete sys_id Keep sys_id Note
Access controls on Tables scan_table_check d44f0a4097b29510dd0178300153af7e 66f9f49ddb7f0010f85054c5dc96191e Duplicate of baseline Global check
Access controls on UI Pages scan_table_check e660164097b29510dd0178300153af2e f8fab4dddb7f0010f85054c5dc9619ca Duplicate of baseline Global check
Don't use new Array() scan_check c2db61672f561110a1803e0ef699b64b 2e2a8fc02f0730103307235df699b659 Duplicate of previous commit from mark.roethof

Add an Instance Scan for orphaned Catalog Item/Record Producer variables

Sometimes when developing new Catalog Items, I find left over variables that are not used anywhere - not associated with a catalog item and also not associated with a variable set. These are unnecessary configuration that just create bloat in your system and it is likely best to not move these configurations to production.

An Instance Scan could flag them/find them so that you can remove them from your Update Set and clean them up.

Full example at: https://www.servicenow.com/community/developer-articles/instance-scan-orphaned-catalog-configurations-examples/ta-p/2302050

Create a banner for this repository

Similar to other hacktoberfest repositories, we should be consistent and have a banner at the top of each repo's readme.md file.
The file should be in a 4:1 aspect ratio. (eg. 1600px wide and 400 pixels height).

Unable to use engine.current in Linter check

App scoping issue - warning in the logs:

java.lang.SecurityException: Method returned an object of type GlideRecord which is not allowed in scope x_appe_exa_checks
Caused by error in Linter Check: 'Linter check name here' at Line 4

Fix Readme for Delete Orphaned Catalog UI Policies

The Readme file was updated incorrectly at some point. The heading and the description do not match. Heading should be fixed to match the description of the check. See the headings just above this one for similar check description.


Update set description should not be empty

Catalog UI policy should be used in either a Catalog Item or a Variable Set. Catalog UI Policies not in use should be deleted.

Add check for valid Script Include name

It seems possible to create a Script Include with an invalid name (eg. one with a space in the name) . Initially, the Script checker will complain about Javascript errors:
image

But it's possible to fix those errors, forget to fix the script name, and then save the record:
image

Add check for getReference

getReference is considered against best practice since it can impact performance. See: https://docs.servicenow.com/bundle/vancouver-api-reference/page/script/client-scripts/concept/client-script-best-practices.html

Copied from link:
Note: GlideRecord and g_form.getReference() are also available for retrieving server information. However, these methods are no longer recommended due to their performance impact. Both methods retrieve all fields in the requested GlideRecord when most cases only require one field.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.